package com.alibaba.cloud.anno;

import jakarta.validation.Constraint;

import java.lang.annotation.*;

/**
 * @author zhb131678362@163.com
 * @Description: 描述作用
 * @date 2018/11/2613:56
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.FIELD, ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.PARAMETER })
@Documented
@Inherited
@Constraint(validatedBy = IsEmailValidator.class)
public @interface IsEmail {

	/**
	 * Require.
	 *
	 * @return true, if successful
	 */
	boolean require() default true;

	/**
	 * Message.
	 *
	 * @return the string
	 */
	String message() default "邮箱格式错误";
}
